#include <stdio.h>
int main(void)
{
    float i, max = 0.0f;
    for (;;) {
        printf("Enter a number: ");
        scanf("%f", &i);
        if (i <= 0)
            break;
        if (i > max)
            max = i;
    }
    printf("The largest number entered was %.2f\n", max);
    return 0;
}